# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=sound-juicer
pkgver=3.24.0
pkgrel=0
pkgdesc="Sound Juicer is a CD ripping tool using GTK+ and GStreamer"
url="https://wiki.gnome.org/Apps/SoundJuicer"
arch="all !s390x !mips !mips64" # Limited by brasero
license="GPL-2.0-or-later"
depends="iso-codes gsettings-desktop-schemas"
makedepends="glib-dev gtk+3.0-dev brasero-dev gstreamer-dev gst-plugins-base-dev
	libmusicbrainz-dev iso-codes-dev itstool libcanberra-dev gsettings-desktop-schemas-dev
	gstreamer-tools libdiscid"
subpackages="$pkgname-lang $pkgname-doc"
source="https://download.gnome.org/sources/sound-juicer/3.24/sound-juicer-$pkgver.tar.xz"

build() {
	pkg-config --libs --cflags libmusicbrainz5
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="7bd158a4e3a7c3072513fc508f59cd70b6d9371cde142fdb58597e72b3687790b9368fc7e1a35fd8c7b49cb28703f8b2da4a789854f96cdc0af076278818a91f  sound-juicer-3.24.0.tar.xz"
